<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.GregorianCalendar"%>
<%@page import="java.util.Calendar"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link media="all" href="style.css" type="text/css" rel="stylesheet">
    </head>
    <body>
        <%
            if (session.getAttribute("userOnline") != null) {
            Entities.User online = (Entities.User) session.getAttribute("userOnline");
            online.toggleLogout();
            session.removeAttribute("userOnline");
            }
        %>
        <div id="wrapper">
            
            <div id="header">
                <h1>Sistem Pembantu Penjadwalan Studio Musik</h1> versi sesuatu.86
            </div>
            <div id="nav">
                <ul>
                    <li class="selected" ><a href="#"> Home User </a></li>
                     <%Calendar calz = new GregorianCalendar();%>
            <li><a href="?action=menuUser&month=<%=calz.getTime().getMonth()+1%>&year=<%=calz.getTime().getYear()+1900%>"> Lihat Jadwal </a></li>
                    <li><a href="?action=login"> Login</a></li>
                </ul>
            </div>
            <div id="nav2">
                <a href="?action=index">Home </a>                
            </div>
             <%
                    if (request.getAttribute("error") != null) {
                    %>
                    <h3>FAILED TO LOGIN</h3>
                    <%
            }
                    %>
            <img style="padding:30px 210px 0 0" src="img/timthumbnew.jpg" >
                
        </div>
        
    </body>
</html>
